import request from '@/utils/request'
const api_name = '/user/course/classify'
export default {
  getAll(flag) {
    if (flag === undefined || flag === null) {
      return request({
        url: api_name + '/all',
        method: 'GET',
      })
    } else {
      return request({
        url: api_name + '/all',
        method: 'GET',
        params: {
          flag,
        },
      })
    }
  },
}
